package com.example.dubbo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONObject;
import com.example.dubbo.api.service.OrderService;

import java.util.Date;

/**
 * @author xyh
 * @date 2021/7/11 15:23
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Override
    public Object getOrder(Long id) {

        JSONObject json = new JSONObject();
        json.put("id",123123123L);
        json.put("orderNO","NO12312300234");
        json.put("createTime",new Date());
        return json;
    }
}
